package org.jeecg.modules.demo.ysd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.ysd.entity.YsdMedicalMap;
import org.jeecg.modules.demo.ysd.entity.YsdMedicalMapVo;
import org.jeecg.modules.demo.ysd.mapper.YsdMedicalMapMapper2;
import org.jeecg.modules.demo.ysd.service.IYsdMedicalMapService2;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YsdMedicalMapServiceImpl2 extends ServiceImpl<YsdMedicalMapMapper2, YsdMedicalMap> implements IYsdMedicalMapService2 {

    @Override
    public List<YsdMedicalMapVo> selectNearby(double latitude, double longitude, long offset, long size, String name) {
        return baseMapper.selectNearby(latitude, longitude, offset, size, "%" + name + "%");
    }
}
